package system.config.event.listener;

import system.config.event.TestEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 描述
 *
 * @author 米泽鹏
 * @since 2023-11-6 上午 11:59
 */
@Component
public class TestEventListener implements ApplicationListener<TestEvent> {

	@Override
	public void onApplicationEvent(TestEvent event) {
		System.out.println(event.getName());
		System.out.println(event.getSource());
	}

}
